<template>
  <div id="app">
    <Header></Header>
    <Nuxt />
    <!-- 部分路由不包含这个Footer -->
    <Footer v-if="excludeRoutes.indexOf($route.name) == -1"></Footer>
  </div>
</template>
<script>
import Header from '~/components/header/Header'
import Footer from '~/components/footer/Footer'
export default {
  name: 'App',
  data() {
    return {
      excludeRoutes: ['HomeIndex', 'MyAddress', 'AddAddress', 'MyOrder', 'MyShoppingCart']
    }
  },
  components: {
    Header,
    Footer
  }
}
</script>

<style scoped>
</style>
